<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<style>
.btn_un
{
	cursor:pointer;
	color:white;
	width:68px;
	height:24px;
	border:0px;
	background-image: url(${pageContext.request.contextPath}/images/speedreport/btn_save_un.png);
}

.btn_nu
{
	cursor:pointer;
	color:white;
	width:68px;
	height:24px;
	border:0px;
	background-image: url(${pageContext.request.contextPath}/images/speedreport/btn_save_nu.png);
}

.spread_un
{
	vertical-align: bottom;
	background-image: url("");
	width: 61px; 
	height: 22px
}

.spread_nu
{
	vertical-align: bottom;
	background-image: url("${pageContext.request.contextPath}/images/speedreport/mousemove_bg.png");
	width: 61px; 
	height: 22px;
	color: white;
}

</style>
	<script type="text/javascript">
	$(function() 
	{
	    //增加隔行变色效果
        $(".listtable").zebra(); 
		//指标名称
		$('#dqm_dataestimatecal_kqinameinputadd_kpiname').combogrid({
			url:'${pageContext.request.contextPath}/mininganalysis/dataEstimateCalAction!getAllKqiName.action',
			panelWidth: 500,
			panelHeight:270,
			idField: 'kqiid',
			pagination:true,
			pageList: [10,20,30],
			textField: 'kqiname',
			required: true,
			nowrap:true,
			fitColumns:true,
			columns: [[
						{field:'kqiid',title:'指标编码',width:50},
						{field:'kqiname',title:'指标名称',width:100},
						{field:'kqiversionnum',title:'指标版本号',width:300,resizable:true},
					]],
			onSelect:function(value,rowData,rowIndex){
				//给"指标编码"这个文本域赋值
				document.getElementById("dqm_dataestimatecal_kqiidinputadd").innerText=rowData.kqiname;
				document.getElementById("dqm_dataestimatecal_kqiversionnuminputadd").innerText=rowData.kqiversionnum;
				$("#dqm_dataestimatecal_kqinameinputadd_kpiname").val(rowData.kqiname);
			}
		});
		
		//模型
		$('#dqm_dataestimatecal_modelnameinputadd').combogrid({
			url:'${pageContext.request.contextPath}/mininganalysis/dataEstimateCalAction!getAllDataminingModel.action', 
			panelWidth: 500,
			panelHeight:270,
			editable:true,
			idField: 'dataminimodelId',
			textField: 'dataminimodelName',
			required: true,
			fitColumns:true,
			columns: [[
						{field:'dataminimodelId',title:'模型编号',width:70},
						{field:'dataminimodelName',title:'模型名称',width:70},
						{field:'dataminiFormula',title:'模型公式',width:300,editor:'text'},
					]],
			onSelect:function(rowIndex, rowData){
				//给报告内容文本域赋值
				  document.getElementById("dqm_dataestimatecal_formularinputadd").innerText=rowData.dataminiFormula;
				  document.getElementById("dqm_dataestimatecal_modelidinputadd").innerText=rowData.dataminimodelId;
			}
		});

	});	
  </script>
<div class="" style="width:100%;height:100%">
	<form id="dqm_dataestimatecal_addbaseform" method="post">		
		<table class="listtable" height:40px border="0" cellpadding="0" cellspacing="0" style="width:100%;height:100%;background-image: url(${pageContext.request.contextPath}/images/speedreport/add_speedreport_bg.png)">
		<tr>
			<td height="28px" style="text-align:right;"><span style="color:red;font-size:15px">*</span>指标名称:&nbsp;</td>
			<td height="28px">
				
				<input id="dqm_dataestimatecal_kqinameinputadd_kpiname" type="text" name="kqiid" />
			</td>
			<td height="28px" style="text-align:right;"><span style="color:red;font-size:15px">*</span>模型名称:&nbsp;</td>
			<td height="28px">
				<input id="dqm_dataestimatecal_modelnameinputadd" type="text" name="dataminimodelName" panelHeight="auto"/>
			</td>
		</tr>
		
		<tr>

			<td height="0px">
				<input id="dqm_dataestimatecal_kqiidinputadd" name="kqiname" type="hidden"/>
			</td>

			<td height="0px">
				<input id="dqm_dataestimatecal_modelidinputadd" type="hidden"  name="dataminimodelId" panelHeight="auto"/>
			</td>
		</tr>
		
		<tr>
			<td height="28px" style="text-align:right">指标版本号:&nbsp;</td>
			<td height="28px">
				<input id="dqm_dataestimatecal_kqiversionnuminputadd" type="text" name="kqiVersionnum"/>
			</td>

			<td height="28px" style="text-align:right">评估状态:&nbsp;</td>
	 	     <td height="28px">
	 	       <select id="dqm_dataestimatecal_estimatestateinputadd" name="estimatestate" class="selectkpiClass" >
	 	          <option value='1'>启用</option>
	 	          <option value='0'>不启用</option>
	 	       </select>
	 	    </td>			
		</tr>
		<tr>
			<td height="28px" style="text-align:right">挖掘模型公式:&nbsp;</td>
			<td height="68px" colspan="3">
				<textarea id="dqm_dataestimatecal_formularinputadd" style="width:92%;height:60px;border-color:#79c0f1"></textarea>
			</td>
		</tr>	
		</table>
	</form>
</div>